package com.team.appinfo.mapper;

import com.team.appinfo.entity.AppVersion;
import com.team.appinfo.entity.AppVersionExample;
import java.util.List;

public interface AppVersionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AppVersion record);

    int insertSelective(AppVersion record);

    List<AppVersion> selectByExample(AppVersionExample example);

    AppVersion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AppVersion record);

    int updateByPrimaryKey(AppVersion record);

    //删除app下的版本
    int deleteByAppId(Long appId);

    //查询版本号
    List<AppVersion> getAppVersion(Long id);

    //查询最新版本号
    AppVersion getLastAppVersion(Long appid);
}